package tcu.se.SpringAOP.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Order(0)
public class SecondUserProxy {
    @Pointcut(value = "execution(* tcu.se.SpringAOP.aop.User.add(..))")
    public void pointDome(){
    }
    //  前置通知
    @Before(value = "pointDome()")
    public void before(){
        System.out.println("Second berfore.....");
    }
}
